﻿using ML.Entity;

namespace ML.IBusiness
{
    /// <summary>
    /// 广告业务接口
    /// </summary>
    public interface IAdvertisementBusiness
    {
        /// <summary>
        /// 根据查询条件查询广告信息
        /// </summary>
        /// <param name="advertisementSearch">广告查询条件</param>
        /// <returns></returns>
        BaseResult<Pager<AdvertisementEntity>> List(AdvertisementSearch advertisementSearch);

        /// <summary>
        /// 根据广告Id查询广告信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        BaseResult<AdvertisementEntity> GetById(string id);

        /// <summary>
        /// 添加广告
        /// </summary>
        /// <param name="advertisementEntity">实体</param>
        /// <returns></returns>
        BaseResult<bool> Add(AdvertisementEntity advertisementEntity);

        /// <summary>
        /// 根据更新广告信息
        /// </summary>
        /// <param name="advertisementEntity">实体信息</param>
        /// <returns></returns>
        BaseResult<bool> Update(AdvertisementEntity advertisementEntity);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        BaseResult<bool> Delete(string id);
    }
}